package dataStructures;

import java.net.InetAddress;
import java.util.ArrayList;

/**
 * Diese Klasse repräsentiert eine Liste aller Adjazenzen, dieses Routers. Singleton.
 * @author pascal
 *
 */
public class Adjacencies {

	private ArrayList<NeighborDataStructure> table;
	
	private static Adjacencies instance = null;
	
	
	private Adjacencies(){
		this.table = new ArrayList<NeighborDataStructure>(); 
	}
	
	public void addAdjacencie(NeighborDataStructure adjacencie) {
	
	}
	
	public void removeAdjacencie(InetAddress neighborID){
		
	}

	public static Adjacencies getInstance() {
		
		if(instance == null){
			instance = new Adjacencies();
		}
		return instance;
	}

}
